package com.pktechan.api.dao;

import com.pktechan.api.base.BaseMapper;
import com.pktechan.api.entity.ShopCart;
import com.pktechan.api.vo.ShopCartVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("shopCartMapper")
public interface ShopCartMapper extends BaseMapper {
    /**
     * 根据购物车id集合查询
     * @param shopCartIdList
     * @return
     */
    List<ShopCartVO> getShopCartByIds(List<Integer> shopCartIdList);
    /**
     * 获取购物车列表
     * @param shopCart
     * @return
     */
    List<ShopCartVO> getShopCartList(ShopCart shopCart);
    /**
     * 新增或修改
     * @param shopCart
     */
    ShopCart getShopCartByProductIdAndCustId(ShopCart shopCart);
}
